<?php

use yii\db\Migration;
use yii\db\Schema;

class m170111_054620_ADD_COLUMN_EN_NAME extends Migration
{
    public function up()
    {

         $this->addColumn('{{recreation}}', 'en_name', Schema::TYPE_STRING. "(255) null COMMENT '英文名' ");
         $this->addColumn('{{restaurant}}', 'en_name', Schema::TYPE_STRING. "(255) null COMMENT '英文名' ");
    }

    public function down()
    {
        echo "m170111_054620_ADD_COLUMN_EN_NAME cannot be reverted.\n";

        return false;
    }

    /*
    // Use safeUp/safeDown to run migration code within a transaction
    public function safeUp()
    {
    }

    public function safeDown()
    {
    }
    */
}
